﻿<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>

    <title>My JSP 'shang.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">

    <link rel="stylesheet" th:href="@{/css/pintuer.css}">
    <link rel="stylesheet" th:href="@{/css/admin.css}">
    <script th:src="@{/js/jquery-3.3.1.min.js}" type="text/javascript"></script>
    <style type="text/css">
     *{
        font-size: 12px;
       }
    </style>
  </head>
  
  <body>

  <div class="panel admin-panel">
    <div class="panel-head"><strong class="icon-reorder"> 下架电影信息</strong></div>
    <div class="padding border-bottom">
      <ul class="search">
        <li>
          <button type="submit" class="button border-red"><span class="icon-trash-o"></span> 批量删除</button>
        </li>
      </ul>
    </div>
    <table class="table table-hover text-center" id="firm-table-shang">
      <tr>
        
        <th>编号</th>       
        <th>电影类别</th>
        <th>电影名称</th>
        <th>主演</th>
        <th>上映时间</th>
        <th>简介</th>
        <th align="center">操作</th>       
      </tr>
    </table>
  </div>


</body>
<script>
    $(function(){
        $.get("../gson/fimlGson",{
            fflag : 0
        },function(data){
            var gsonText = '';
            $(data).each(function(i,n){
                gsonText += '<tr>' +
                    '<td>'+n.fid+'</td>' +
                    '<td>'+n.modelFsort.sname+'</td>' +
                    '<td>'+n.fname+'</td>' +
                    '<td>'+n.fauto+'</td>' +
                    '<td>'+n.ontime+'</td>' +
                    '<td width="300px">'+n.fremark+'</td>' +
                    '<td colspan="7" align="center">\n' +
                    '\t\t\t\t<a href="deleteById?fid='+n.fid+'&fflag=1"><button type="button"  class="button border-green" id="checkall"><span class="icon-check"></span> 上架</button></a>\n' +
                    '\t\t\t</td>' +
                    '</tr>';
            });
            gsonText += '<tr>\n' +
                '       \t\t<td colspan="7">\n' +
                '       \t\t\t<a href="fimlControllerAll"><button type="button"  class="button border-green" id="checkall"><span class="icon-check"></span> 返回查询菜单</button></a>\n' +
                '       \t\t</td>\n' +
                '       </tr>';
            $('#firm-table-shang tbody').append(gsonText);
        });
    });
</script>
</html>

